<template>
    <div class="common-layout">
        <el-container>
            <!-- 头 -->
            <el-header>
                <h5 class="mb-2">溯源管理</h5>
            </el-header>
            <el-container>
                <!-- 左边 -->
                <el-aside width="200px">
                    <el-menu active-text-color="#ffd04b" background-color="#545c64" class="el-menu-vertical-demo"
                        default-active="2" text-color="#fff" @open="handleOpen" @close="handleClose"
                        style="width: 200px;" router>
                        <el-sub-menu index="1">
                            <template #title>
                                <el-icon>
                                    <location />
                                </el-icon>
                                <span>溯源管理——新增修改</span>
                            </template>
                            <el-menu-item-group title="溯源管理">
                                <!-- 使用 'to' 属性进行页面跳转 -->
                                <el-menu-item index="/ProductCreate"
                                    :to="{ path: '/ProductCreate' }">新增修改</el-menu-item>
                                <el-menu-item index="2">导出设置</el-menu-item>
                            </el-menu-item-group>
                        </el-sub-menu>
                    </el-menu>
                </el-aside>
                <!-- 右边 -->
                <el-main>
                    <router-view />
                </el-main>

            </el-container>
        </el-container>
    </div>
</template>

<script lang="ts" setup>


</script>

<style></style>